#pragma once

#include <sys/types.h>
#include <time.h>

const int RETURN_SUCCESS = 0 ;
const int GENERAL_FAILURE = -1;

/*-----------------------------------------------------------------------------
 *  socket constants
 *-----------------------------------------------------------------------------*/
const unsigned int IPADDRESSMAXLEN = 64;
const unsigned int MAXTHREADSNUM = 8;

typedef enum{
	NOTUSE = 0,
	READY,
	BUSY,
	DEAD
}ConnectStatus;

const int MAXMSGBODYSIZE = 1024*1024*10;    //10MB msg body...
const int NUMOFIMAGES = 200;
const int RETRYTIMES = 3;
